<template>
    <div>
        <Button type="primary" v-has="'xx'">按钮1</Button>
        <Button type="dashed" ref="xwx">按钮2</Button>
        <Button type="success" v-has="'aa'">按钮3</Button>
        <Button type="warning">按钮4</Button>
        <Button type="error">按钮5</Button>
    </div>
</template>

<script>
export default {
  created () {
    // let permis = ['aa', 'bb', 'cc', 'dd'].toString()
    // this.$common.setBtnPermission(permis)
  },
  mounted () {
    let fun = 'function a(h, params) {\n' +
'   this.ab()\n' +
'}'

    let good = evil(fun)
    good(function (a, b) {
      console.log(a, b)
    }, { row: { how_hong_time: 23232323, pay_time: 34343434 } })
  },
  methods: {
    ab () {
      console.log('iiiiii')
    }
  }
}
</script>

<style scoped>

</style>
